// @flow

const obj1: { foo: string, bar: number } = {foo: '1', bar: 2};
const obj2: { foo?: string, bar: number } = {bar: 2};
const obj3: { [string]: string } = {};

obj3.key1 = 'value1';
obj3.key2 = '100';